package day0724;

import javax.swing.*;

public class Bullet extends FlyingObject {
    Bullet(){
        x=200;
        y=650;
        ImageIcon bg=new ImageIcon("images1/bullet.png");
        bulletImage=bg.getImage();
        height= bg.getIconHeight();
        width= bg.getIconWidth();
    }

    void fly() {
        y-=5;
    }

    boolean outofbounds() {
        return y<0;
    }
}
